package com.sc.nft.controller.request;

import com.sc.nft.sup.PageRequest;
import com.sc.nft.enums.task.ActivityTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import javax.validation.constraints.NotNull;

@Data
public class PageMallOrderRequest extends PageRequest {

    @NotNull(message = "订单分类不能为空")
    @ApiModelProperty("订单类型  SALES:购买订单 EXCHANGE:兑换订单")
    private ActivityTypeEnum activityType;


    @ApiModelProperty("订单状态 0:全部 1:待付款 2:待发货 3:待收货 4:售后")
    @NotNull(message = "订单状态不能为空")
    @Range(min = 0, max = 4, message = "订单状态取值范围不正确")
    private Integer queryStatus;

}
